<?xml version="1.0" encoding="utf-8"?>
<ZipParser>
  <!--
      This is the configuration file for the zip parser, there are two elements to the 
      configuration, since this parser looks for XML files it may not be the only parser
      you want to run, if thats the case you can "chain" another parser by configuring this
      one as the first one and then making an entry here for the other parser. If one of the
      configured XML files is not found then the other DLL will be invoked. If the DLL is
      a registered COM object all you need is the ProgID, if it is an unregistered COM object
      we need the path to the DLL and the ClassID to get from it. The values below are samples
      so fill in the appropriate ones, use only one of the formats, not both
      <SecondaryParser ProgID="SomeClass.SomeObject"/>
      <SecondaryParser CLSID="{37081B49-0647-49d8-AB9F-219452F5894C}" >C:\program files\FullPathToDLLWithParserImplementation.dll</SecondaryParser>

      There is an another configuration entry called runtime which reads two values
      which either force the parser to be chained each time and control when
      the parser list is read (once or on each call), 
      
      <Runtime ForceParserChaining="False" CacheParserConfiguration="True" />

      The remaining section of the parser information is for the different type of 
      zip files that might occur, the section name is just that, a unique name
      the file to find is the name of the XML file to look for in the archive, if it
      exists, the section will be processed by loading the namespace string into
      an XML DOM and itterating thorugh the columns, using the XPathExpression found
      in the value. There are a number of configuration options, so look at the code
      for how to configure each Parser node
      
      The example below retrieves the properties from the different
      types of Office 2007 documents
        
        
  <Parser XMLFileName="docProps/core.xml">
    <XPathNameSpaces>xmlns:cp='http://schemas.openxmlformats.org/package/2006/metadata/core-properties' xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:dcterms='http://purl.org/dc/terms/' xmlns:dcmitype='http://purl.org/dc/dcmitype/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'</XPathNameSpaces>
    <SharePointColumn Name="Title">/cp:coreProperties/dc:title</SharePointColumn>
    <SharePointColumn Name="Author">/cp:coreProperties/dc:creator</SharePointColumn>
    <SharePointColumn Name="Subject">/cp:coreProperties/dc:subject</SharePointColumn>
    <SharePointColumn Name="LastModifiedBy">/cp:coreProperties/cp:lastModifiedBy</SharePointColumn>
  </Parser>
  <Parser XMLFileName="docProps/app.xml">
    <XPathNameSpaces>xmlns:def='http://schemas.openxmlformats.org/officeDocument/2006/extended-properties' xmlns:vt='http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes'</XPathNameSpaces>
    <SharePointColumn Name="Company">/def:Properties/def:Company</SharePointColumn>
  </Parser>
  <Parser XMLFileName="docProps/custom.xml">
    <XPathNameSpaces>xmlns:def='http://schemas.openxmlformats.org/officeDocument/2006/custom-properties' xmlns:vt='http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes'</XPathNameSpaces>
    <SharePointColumn Name="*">/def:Properties/def:property</SharePointColumn>
  </Parser>


  -->
  <Runtime ForceParserChaining="False" CacheParserConfiguration="True" />
  <Parser XMLFileName="docProps/core.xml">
    <!--Get some basic properties from the Office 2007 property collection-->
    <XPathNameSpaces>xmlns:cp='http://schemas.openxmlformats.org/package/2006/metadata/core-properties' xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:dcterms='http://purl.org/dc/terms/' xmlns:dcmitype='http://purl.org/dc/dcmitype/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'</XPathNameSpaces>
    <SharePointColumn Name="Title">/cp:coreProperties/dc:title</SharePointColumn>
    <SharePointColumn Name="CreatedByForTest">/cp:coreProperties/dc:creator</SharePointColumn>
    <SharePointColumn Name="Subject">/cp:coreProperties/dc:subject</SharePointColumn>
    <SharePointColumn Name="LastModifiedBy">/cp:coreProperties/cp:lastModifiedBy</SharePointColumn>
  </Parser>
  <Parser XMLFileName="docProps/app.xml">
    <!--Get some basic properties from the Office 2007 application specific property collection-->
    <XPathNameSpaces>xmlns:def='http://schemas.openxmlformats.org/officeDocument/2006/extended-properties' xmlns:vt='http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes'</XPathNameSpaces>
    <SharePointColumn Name="Company">/def:Properties/def:Company</SharePointColumn>
  </Parser>
  <Parser XMLFileName="docProps/custom.xml">
    <!--Get all available customer properties -->
    <XPathNameSpaces>xmlns:def='http://schemas.openxmlformats.org/officeDocument/2006/custom-properties' xmlns:vt='http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes'</XPathNameSpaces>
    <SharePointColumn Name="*">/def:Properties/def:property</SharePointColumn>
  </Parser>
</ZipParser>